package router

import (
	"api-getway/internal/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {

	user := r.Group("user")
	{
		user.POST("/login", handler.Login)
		user.POST("/upload", handler.Upload)
		user.GET("/websocket", handler.Chat)
	}
	doctor := r.Group("doctor")
	{
		doctor.GET("/room", handler.RoomList)
		doctor.GET("/hospital", handler.HospitalList)
	}

}
